package com.biocar.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.biocar.serializer.TimestampDeserializer;
import com.biocar.serializer.TimestampSerializer;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;

import java.sql.Timestamp;
import java.util.Date;

/**
 * @author quxiang
 * @date 2021/11/24 15:57
 */
@Data
@TableName("charge")
public class Charge {

    @TableId(type = IdType.AUTO)
     private Integer id;

     /**
      * 编号
      */
     private String number;

    /**
     * 费用日期
     */
    @JsonDeserialize(using = TimestampDeserializer.class)
    @JsonSerialize(using = TimestampSerializer.class)
    private Timestamp costDate;

    /**
     * 付款账户
     */
    private String account;

    /**
     * 金额
     */
    private double money;

    /**
     * 币种
     */
    private String moneyType;

    /**
     * 发票号码
     */
    private String bill;

    /**
     * 业务员
     */
    private String saleman;

    /**
     * 部门
     */
    private String dept;

    /**
     * 备注
     */
    private String tips;

    /**
     * 创建者
     */
    private String creator;

    /**
     * 创建日期
     */
    @JsonDeserialize(using = TimestampDeserializer.class)
    @JsonSerialize(using = TimestampSerializer.class)
    private Timestamp createDate;

    /**
     * 状态：1、付款成功
     *      2、未通过
     *      3、审批中
     *      4、已批准，待付款
     */
    private Integer status;


}
